import 'package:casdon/modules/device/data/model/product_category_model.dart';

class ProductCategoryModelState {
  final List<ProductCategoryModel> data;
  final bool isLoading;

  ProductCategoryModelState({
    required this.data,
    required this.isLoading,
  });

  ProductCategoryModelState copyWith({
    List<ProductCategoryModel>? data,
    bool? isLoading,
  }) {
    return ProductCategoryModelState(
      data: data ?? this.data,
      isLoading: isLoading ?? this.isLoading,
    );
  }

  factory ProductCategoryModelState.initial() => ProductCategoryModelState(
    data: [],
    isLoading: false,
  );
}
